package com.ysd.lis.controller.lab;

import com.ysd.common.Result;
import com.ysd.common.page;
import com.ysd.lis.controller.pub.BaseController;
import com.ysd.lis.service.lab.LabMainInfoLogService;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;


/**
 * @author LuoXS
 * @date 2024/5/23
 * version 1.0
 */
@RestController
@RequestMapping("/lab/main/info/log")
public class LabMainInfoLogController extends BaseController {

    @Resource
    LabMainInfoLogService service;


    @ApiOperation("获取微生物基础字典-药敏测试列表（分页）")
    @GetMapping("/page")
    public Result pageList(PageParam pageParam) {
        return service.pageList(pageParam);
    }

    @ApiOperation("获取检验结果日志")
    @GetMapping("/getResultLogPag")
    public Result getResultLogPag(PageParam pageParam) {
        return service.getResultLogPag(pageParam);
    }

    @Getter
    @Setter
    @NoArgsConstructor
    @AllArgsConstructor
    public static class PageParam extends page {
        private String searchValue;
        private String mainInfoId;
        private String sampleNo;
        private String sampleDate;
        private String rptGroup;
    }
}
